home *** CD-ROM | disk | FTP | other *** search
- !---------------------------------------------------------------------!
- ! !
- ! Copyright (c) 1991 !
- ! by CompuServe Incorporated, Columbus, Ohio !
- ! !
- ! The information in this software is subject to change without !
- ! notice and should not be construed as a commitment by CompuServe. !
- ! !
- ! SAPONET Script: !
- ! Connect to CSIR-Net !
- ! Success: returns %Success !
- ! Failure: saves error msg in %FailureMsg and returns %Failure !
- ! !
- ! $Revision: 1.0 !
- ! !
- !---------------------------------------------------------------------!
-
- CSIRNET_Id = "901040oz3u";
- CIS_Address = "C 10631679";
-
-
- Tries = 5;
- on cancel goto Return_Cancel;
- show "Connecting to CSIR-Net";
- wait until 5;
- send %CR & %CR;
-
- Wait_CSIRNET:
-
- if Tries = 0 goto CSIRNET_Failure;
- Tries = Tries - 1;
-
- wait
- "NUI?" goto send_CSIRNET_password,
- "SELECT ?" goto send_A,
- "FOR MAIN INDEX" goto send_CIS_Address,
- "NO CIRCUIT" goto send_CIS_Address,
- "NO CARRIER" goto CSIRNET_Failure
- until 350;
-
- send %CR;
- goto Wait_CSIRNET;
-
- send_CSIRNET_password:
- send CSIRNET_Id;
- show "Waiting for TRIPLE-X ...";
- goto Wait_CSIRNET;
-
- send_A:
- send "A";
- goto Wait_CSIRNET;
-
- send_CIS_Address:
- show "Sending CompuServe Address ...";
- wait until 15;
- send CIS_Address & %CR;
- goto Return_Success;
-
- CSIRNET_Failure:
- define %FailureMsg = "CSIR-Net: No Response";
- exit %Failure;
-
- Return_Cancel:
- exit %Cancel;
-
- Return_Success:
- exit %Success;